/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cxhd.lis.task;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

/**
 *
 * @author 52461
 */
public class TaskManager {

    private static TaskManager taskmanager;
    BaseTask getResult = new GetResultTask();

    public static TaskManager getInstance() {

        if (taskmanager == null) {
            taskmanager = new TaskManager();
        }
        return taskmanager;
    }

    public void startTask() {
        System.out.println("启动定时任务");  
        getResult.start();

    }
    
    public void stopTask(){
      getResult.stop();
        System.out.println("关闭定时任务");
    }

}
